//
//  TransMessageCell.swift
//  GLUZ
//
//  Created by GS on 2025/2/28.
//

import UIKit

class TransMessageCell: UITableViewCell {

    @IBOutlet weak var markView: UIView!
    @IBOutlet weak var messageLabel: UILabel!
    override func awakeFromNib() {
        super.awakeFromNib()
        markView.backgroundColor = .black.setAlpha(0.3)
        contentView.backgroundColor = .clear
        markView.addRoundedCorners(radius: 8)
    }
    
    var seiModel: IMRecvSeiModel? {
        didSet {
            guard let model = seiModel else { return }
            messageLabel?.text = model.text
        }
    }
    
    var model: IMRecognizeModel? {
        didSet {
            guard let model = model else {
                return
            }
            self.messageLabel?.text = model.text //model.username + ":" + model.text + "\n" + "(" + model.trans + ")"


        }
    }
   
    
}
